<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>配送费全局设置</title>
    <!-- Bootstrap 3.3.5 -->
    <link href="http://cdn.52shangou.com/bootstrap/1.0.2/build/3.3.5/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../../src/c/font-awesome-4.4.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../../src/c/ionicons-2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../../src/c/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../../src/c/dist/css/skins/_all-skins.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link href="http://cdn.52shangou.com/dataTables/1.0.0/build/dataTables.bootstrap.min.css" rel="stylesheet">
    <link href="http://cdn.52shangou.com/bootstrapvalidator/1.0.0/build/css/bootstrapValidator.min.css"
          rel="stylesheet">
    <link href="http://cdn.52shangou.com/bootstrap-datetimepicker/1.0.0/build/css/bootstrap-datetimepicker.min.css"
          rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../../src/c/base/index.css">
    <link rel="stylesheet" type="text/css" href="">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <header class="main-header">
        <!-- Logo -->
        <a href="../home/index.html" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>C</b>RM</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>闪电购</b>CRM</span>
        </a>

        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">导航</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">


                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar" id="main-sidebar">
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                配送费全局设置
            </h1>
        </section>

        <!-- Main content -->
        <section class="content">
            <!-- Info boxes -->
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="form-group navbar-form">
                        <label for="type" class="control-label">城市
                            <select class="form-control" name="type" id="cityselect">
                               
                            </select>
                        </label>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-body">
                     <table class="table table-condensed"> 
                        <tr>
                            <td width="40%" style="padding:0;">
                                <h4>向用户收取配送费 <span id="deliveryAmounttxt"></span>元</h4>
                            </td>
                            <td>
                                <button class="btn btn-info hide" onclick="modifiedSet('1','modify')">修改</button>
                            </td>
                        </tr> 
                    </table>
                    <div>                    
                        <h4>配送费优惠设置</h4>
                        <table class="table table-condensed" id="delivertab1">
                             <tbody>
                                
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td width="40%"></td>
                                    <td>
                                        <button class="btn btn-primary hide" onclick="modifiedSet('2','add')">新增</button>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                    <div>                    
                        <h4>向商家收取配送费</h4>
                        <table class="table table-condensed" id="delivertab2">
                            <thead>
                                <tr>
                                    <td width="20%"><strong>订单金额</strong></td>
                                    <td width="20%"><strong>抽佣比例</strong></td>
                                    <td><strong id="functionset" class="hide">功能</strong></td>
                                </tr>
                            </thead>
                            <tbody>
                                
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="2">
                                    </td>
                                    <td>
                                        <button class="btn btn-primary hide" onclick='modifiedSet("3","add")'>新增</button>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Control Sidebar -->


    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>

</div>
<!-- ./wrapper -->
<!--修改提示框 -->
<style>
                    .d-lefttxt{float:left;line-height: 34px;}
                    #deliver-input3,#deliver-input2{height: auto;overflow: hidden;}
                    .table .btn{margin-right: 5px;}
                </style>
<div id="myModal1" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-ml">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h3>配送费设置</h3>
            </div>
            <div class="modal-body">
                <div id="deliver-input1">
                    <form role="form" id="feeset_form1" method="post">
                        <div class="form-group has-feedback" id="form1_check">
                            <input type="text" placeholder="请输入配送费" name="deliveryAmount" id="deliveryAmount" class="form-control" min="0"/>
                            <i id="userflag" class="form-control-feedback bv-no-label glyphicon" data-bv-icon-for="excludeinput" style="display: none;"></i>
                            <small class="error1 help-block"></small>
                        </div>
                    </form>    
                </div>
                <div id="deliver-input2" class="hide">
                    <form role="form" id="feeset_form2" method="post">
                        <div class="form-group">
                            <span class="d-lefttxt">满</span>
                            <div class="form-group has-feedback d-lefttxt" id="fullset">   
                                <input type="number" class="form-control" min="0" id="fullinput" name="fullinput" required/>
                                <i id="fullflag" class="form-control-feedback bv-no-label glyphicon" data-bv-icon-for="excludeinput" style="display: none;"></i>
                                <small class="error2 help-block"></small>
                            </div>
                        </div>
                        <div class="form-group">    
                             <span class="d-lefttxt">减</span>
                            <div class="form-group has-feedback d-lefttxt" id="minusset">   
                            <input type="number" class="form-control" min="0" id="minusinput" name="minusinput" data-bv-notempty-message="请输入金额" required>
                            <i id="minusflag" class="form-control-feedback bv-no-label glyphicon" data-bv-icon-for="excludeinput" style="display: none;"></i>
                            <small class="error3 help-block"></small>
                        </div>
                        </div>
                    </form>
                </div>
                
                <div id="deliver-input3" class="hide">
                    <form class="form" id="feeset_form3" method="post">
                        <div class="form-group">
                            <span class="d-lefttxt">小　　于</span>
                            <div class="form-group d-lefttxt">
                                <input type="number" id="excludeinput" name="excludeinput" class="form-control" data-bv-notempty-message="请输入金额" min="0" data-bv-greaterthan-inclusive="true" data-bv-greaterthan-message="请输入数字" required>
                            </div>
                        </div>
                    
                        <div class="form-group">
                           <span class="d-lefttxt">收取佣金</span>
                           <div class="form-group d-lefttxt">
                               <input type="text" min="0" id="commissioninput" name="commissioninput" class="form-control d-lefttxt" data-bv-notempty-message="请输入佣金比例" max="100" data-bv-lessthan-inclusive="true" data-bv-lessthan-message="不能超过100" required>
                           </div>
                           <span class="d-lefttxt">%</span>
                       </div>
                        
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <a class="btn btn-default" data-dismiss="modal" aria-hidden="true">取消</a>
                <a class="btn btn-primary" id="deliversetbtn">确定</a>
            </div>
        </div>
    </div>
</div>
<!--提示框 -->
<div class="modal fade bs-example-modal-sm" tabindex="-1" id="msg_dialog" aria-labelledby="msg_dialog_title"
     role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="msg_dialog_title">
                    提示信息
                </h4>
            </div>

            <div class="modal-body" id="msg_dialog_content">
                在这里添加一些文本
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关 闭</button>
            </div>
        </div>
    </div>
</div>
<!--确认框 -->
<div class="modal fade bs-example-modal-sm" tabindex="-1" id="confirm_dialog" aria-labelledby="confirm_dialog_title"
     role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="confirm_dialog_title">
                    操作确认
                </h4>
            </div>
            <div class="modal-body" id="confirm_dialog_content"></div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="comfirm">确 定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关 闭</button>
            </div>
        </div>
    </div>
</div>


<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.52shangou.com/jquery/1.0.0/build/jquery-1.11.3.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://cdn.52shangou.com/dataTables/1.0.0/build/jquery.dataTables.min.js"></script>
<script src="http://cdn.52shangou.com/bootstrap/1.0.2/build/3.3.5/bootstrap.min.js"></script>
<script src="http://cdn.52shangou.com/dataTables/1.0.0/build/dataTables.bootstrap.min.js"></script>
<script src="http://cdn.52shangou.com/jquery.cookie/1.0.0/build/jquery.cookie.min.js"></script>
<script src="http://cdn.52shangou.com/bootstrapvalidator/1.0.0/build/js/bootstrapValidator.min.js"></script>
<script src="http://cdn.52shangou.com/bootstrap-typeahead/1.0.2/build/bootstrap-typeahead.min.js"></script>

<!-- AdminLTE App -->
<script src="../../src/c/dist/js/app.min.js"></script>

<!-- main -->
<script type="text/javascript" src="http://cdn.52shangou.com/lib/1.0.1/build/lib/require.js?t=1440237721"></script>
<script type="text/javascript">
    require.config({
        urlArgs: 't=' + (new Date()).getTime(),
        // baseUrl: '../../build',
        baseUrl: '../../build',
        paths: {
            'juicer': 'http://cdn.52shangou.com/lib/1.0.4/build/lib/juicer-amd'
        }
    });
    require(['p/shop/deliverfee/index']);
</script>
</body>
</html>